/*Author: Seungbeom Ma
 *SJSU 
 * DATE: NOV 16
 * */

package tool.threads;

import android.util.Log;
import tool.http.networks.DataCommunication;

// thread for cloud
public class HttpThread extends Thread{
	
	private volatile String value; // get the result from thread
	private int opt;
	private String g;
	private DataCommunication dc = new DataCommunication();
	
    public HttpThread(int opt , String g) {
        this.opt = opt;
        this.g = g;
    }
	public void run() {
		Log.d("HttpThread", "HttpThread is Running");
        try {
        	value = dc.post(opt, g);   	
       // 	post();
        } catch (Exception e) {
            e.printStackTrace();
        }
        Log.d("HttpThread", "HttpThread is Done");
    }
	 public String getValue() {
         return value;
     }

}
